package org.example.service;

import com.lonni.consumer.client.UserClient;
import com.lonni.rpc.core.annotation.RpcReference;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * TestService：
 * Description:
 *
 * @author: Lonni
 * @date: 2024/7/11 0011 15:31
 */
@Slf4j
@Service
public class TestService implements Serializable {

//    @Autowired
//    private TetsProperties tetsProperties;
//
//
//    public String get(){
//        return tetsProperties.getIp()+tetsProperties.getPort();
//    }

    @RpcReference
    public UserClient userClient;


    public String getRpc(){
        return userClient.queryUser("测试");
    }

}



